<?php
/**
 * <https://y.st./>
 * Copyright © 2019 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'Permission error',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2019/05/11.jpg" alt="Flowers" class="framed-centred-image" width="800" height="480"/>
<section id="dreams">
	<h2>Dream journal</h2>
	<p>
		I dreamed that a short, hooded figure, no taller than the child themself, kidnapped a child and ran off.
		I chased them down, and my efforts seemed futile.
		There were walls on either side, and though there no branches in the path, it seemed like they&apos;d vanished into thin air.
		There were also countless things along the way that seemed like distractions that I was meant to go deal with, but I kept ignoring them.
		Eventually, after following the twists and turns of the walled path, I caught up with the figure and their victim.
		I grabbed the hooded figure and moved them into a patch of sunlight so I could better see what I was dealing with.
		Under their two hoods was a skull.
		At this point, the creature surrendered the child, but really didn&apos;t seem to like the light, so I grabbed the creature again and forcibly held it in the light.
		There had to be something more to what was going on.
		I just kept chanting &quot;What doth light?&quot;, and eventually, the creature succumbed to the light.
		It turned into another child, and seemed very happy.
		I got the impression the second child had been under some sort of curse, and the light had broken it.
	</p>
</section>
<section id="diet">
	<h2>Dietary intake</h2>
	<p>
		I&apos;m still not feeling well today, so I just ate 335 grams of pretzels and 391 grams of juice instead of figuring out meals of any sort.
		I told you this wouldn&apos;t go well.
		I&apos;m off the hook for all but dinner.
	</p>
	<p>
		Speaking of dinner, my Sunday grocery trip didn&apos;t go as planned, as mentioned last week, and I won&apos;t have time to go to the grocery store until tomorrow.
		It&apos;s been over a week without groceries.
		I honestly put in some effort into figuring out exactly what I need for a couple of interesting dinners, but I won&apos;t have the ingredients until tomorrow.
		And that&apos;s assuming Windows doesn&apos;t crash the bottle credit kiosk again this week.
		Aside from peanut butter and jelly sandwiches or soups made form the random vegetables I have lying around, there&apos;s not much I can make with the ingredients I have lying around.
		I ended up baking two small potatoes, and brought them to work with me, along with Italian seasoning and onion powder.
		I was going to bring garlic powder instead of onion powder, but I&apos;m out of the stuff.
		I also meant to bring chives instead of the Italian seasoning, but I grabbed the wrong tin.
		It wasn&apos;t a fantastic meal by any means, but I planned it when I got up this morning, so it was a planned meal.
		I&apos;d short changed myself though.
		I knew I usually have about four potatoes, but I figured I&apos;d get by on two.
		I ended up eating one of my emergency energy bars so I wouldn&apos;t be hungry.
	</p>
	<p>
		On Monday, when I&apos;ve got the ingredients I&apos;ve bought on Sunday night, I&apos;ll have more interesting things to work with.
		I&apos;ll be trying to pick up ingredients for dairy-free cheese sauce so I can use it on spaghetti.
		I&apos;ll also be picking up the missing ingredients for chilli, and the missing ingredients for a couple different sandwiches I enjoy.
		The cheese sauce will be the most interesting thing though.
		I&apos;ve never tried making anything like it.
	</p>
</section>
<section id="mobile">
	<h2>Working on the mobile</h2>
	<p>
		Last night at work, I tried to play music, only to find my mobile had none.
		For a second or two, I wondered why the device was failing to read the $a[SD] card again, but then I remembered that it get the device&apos;s new operating system to read the card at all, I&apos;d had to allow it to format the card.
		There were no music files any more.
		I wouldn&apos;t have music while I work until I found time to figure out a working format for the card.
	</p>
	<p>
		Today, I had a little bit of time, so I tried figuring out what filesystem would work.
		Obviously, I couldn&apos;t use whatever Microsoft-based format the device itself was wanting to format the card to, as Microsoft-based filesystems don&apos;t have decent character support, but at the same time, the $a[ext4] I was using with the previous version of the $a[OS] was no longer working.
		The only way I knew how to find a working filesystem was trial and error, so I sook one of my smallest $a[SD] cards and formatted it on my laptop.
		First, I tried $a[ext4] again.
		I knew that wouldn&apos;t work.
		And it didn&apos;t.
		Next, I tried $a[ext3].
		Much to my surprise, the device now read the card!
		The obvious next step was to format the sixteen gigabyte card I normally have in the mobile to $a[ext3].
	</p>
	<p>
		However, the device wouldn&apos;t read the sixteen gigabyter.
		I noticed though that it called out the $a[SD] card by brand when it said it couldn&apos;t handle the card&apos;s format, so I tried my eight-gigabyte card of a different brand.
		Sure enough, that one worked.
		As a side note, it looks like it might be because of the partition table format used, not the brand, though I couldn&apos;t find a way to chose a new partition table format using the software I was using.
		I&apos;ll need to remember to look for more-sophisticated software and try again later.
		Android&apos;s Linux kernel should be able to handle the $[GUID] partition table format, but Google gimps Android so much that it can&apos;t handle a lot that it actually had code to handle.
		And Replicant inherits much of that gimping.
	</p>
	<p>
		SO I started trying to transfer music onto it.
		I wasn&apos;t sure if it&apos;d all fit, but I should be able to get a decent selection of music files onto the thing.
		$a[MTP] was failing though.
		It couldn&apos;t transfer anything.
		So I tried looking at the card&apos;s directory tree in the mobile&apos;s own file manager.
		Quickly, the thing reported the problem: a permission error.
		The device&apos;s software didn&apos;t have the necessary permissions to access the $a[SD] card&apos;s filesystem.
		The mobile&apos;s old $a[OS] used to modify the permissions on the root of the $a[SD] card to make the card usable.
		It actually went overboard, and locked other users out, so I couldn&apos;t write to it from my laptop except as root.
		All I had to do was change the permissions on the $a[SD] card&apos;s file tree root.
	</p>
	<p>
		I tried changing the permissions using the graphical interface on the laptop.
		The permissions kept resetting.
		I&apos;ll need to try again later, either using the command line and/or as <code>root</code>.
		Next, I tried formatting as $a[ext].
		The laptop doesn&apos;t seem to support that operation though.
		The format&apos;s probably just to old.
		I was actually kind of hoping it was old enough not to have file permissions, which is why I tried to use it.
		And finally, I tried formatting as $a[ext2].
		The mobile rejected that one as unsupported.
	</p>
	<p>
		So later, I guess my plan is this:
		First, I&apos;ll need to try getting the $a[SD] card to allow read and write by everyone.
		The thing stores only music for me, so none of it needs to be the least bit secure.
		And even if it did, as long as the filesystem&apos;s unencrypted, anyone that stole the card could try the same permission-editing I&apos;d need to try to lock it down, but instead set everything to readable.
		It wouldn&apos;t actually make anything any more secure.
		Second, I need to try to figure out how to reformat the larger card to use a Master Boot Record partition table.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			You make an interesting point about not needing to go back in history longer than two weeks in most cases.
			I suppose you&apos;re right that most files that get accidentally deleted will probably get noticed within the span of two weeks.
			And if they don&apos;t, they likely weren&apos;t very important files; they certainly weren&apos;t often-accessed files.
		</p>
		<p>
			I kind of agree on the backup frequency to backup cost trade-off you mention.
			It takes way too much of my time to back up all my data every day, so I tend to back it up once between terms.
			Honestly though, I could lose a lot of data this way.
			If I had the equipment at home to back my data up without plugging my laptop into an immobile hard drive, I&apos;d back up much more often.
			I <strong>*should*</strong> back up much more often.
			It&apos;ll be a while before I can get my home server back up so I can connect to it over Wi-Fi to back up my laptop&apos;s data though.
		</p>
	</blockquote>
</section>
END
);
